// px转换为rem
@function pxToRem($px, $base: 750px) {
    $min: 1 / $base * 10 * 1;
    $result: $px / $base * 10 * 1;

    @if $result < 0.027 and $result > 0 {
        @return 2px;
    }

    @else {
        @return $px / $base * 10 * 1rem;
    }

}

// 设置dpr下的字体大小
@mixin font-dpr($font-size, $line-height: $font-size) {
    font-size: $font-size / 2;

    @if $line-height != none {
        line-height: $line-height / 2;
    }

    [data-dpr="2"] & {
        font-size: $font-size;

        @if $line-height != none {
            line-height: $line-height;
        }
    }

    [data-dpr="3"] & {
        font-size: $font-size * 3 / 2;

        @if $line-height != none {
            line-height: $line-height * 3 / 2;
        }
    }
}

@font-face {
    font-family: 'PingFang Regular';
    src: url('../font/enroll/PingFang Regular.eot');
    src:
      url('../font/enroll/PingFang Regular.eot?#font-spider') format('embedded-opentype'),
      url('../font/enroll/PingFang Regular.woff') format('woff'),
      url('../font/enroll/PingFang Regular.ttf') format('truetype'),
      url('../font/enroll/PingFang Regular.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

.rule-container{
    width: 100%;
    background-color: #fbd401;
    font-family: 'PingFang Regular';
    padding: pxToRem(24px) pxToRem(18px);
    box-sizing: border-box;
    @include font-dpr(26px,38px);
    color: #333333;
    font-weight: bold;

    .content{
        background-color: #ffffff;
        border-radius: pxToRem(20px);
        padding: pxToRem(50px) pxToRem(60px) 0;
        box-sizing: border-box;

        .content-title{
            @include font-dpr(42px,50px);
            color: #1acbfd;
            text-align: center;
        }

        .content-summary{
            margin: pxToRem(50px) auto pxToRem(60px);
        }

        .content-block{
            padding-bottom: pxToRem(40px);

            .content-block-number{
                width: pxToRem(34px);
                height: pxToRem(37px);
                text-align: center;
                color: #ffffff;
                background-image: url('../images/rule/numberDot.png');
                background-repeat: no-repeat;
                background-size: 100% 100%;
                margin-right: pxToRem(10px);
                float: left;
            }

            .content-block-title{
                float: left;
                color: #1acbfd;
            }

            .content-block-word{
                clear: both;
            }

            .middot{
                color: #1acbfd;
            }
        }
    }
}